<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui"
    xmlns:c="http://java.sun.com/jsp/jstl/core">

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <p:growl id="messages"/>
    <p:menubar>
        <p:submenu label="Ticket">
            
            <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
            <p:menuitem value="Ingresar Ticket" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="contacts" target="#{menuBacking.selection}"/>
            </p:menuitem>
                </c:if>
            
            
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Listado de Tickets solicitados" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="concerts" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
                
            
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Listado de Tickets Atendidos" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="band" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
                
            <p:separator />
            <p:menuitem value="Salir" actionListener="#{login_bean.logout}" onclick="if(confirm('¿Está seguro?')) return true" />
        </p:submenu>

        <p:submenu label="Asignaciones">
            <p:submenu label="Listado Tickets Asignados">
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Contacts" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="contacts" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
                Listado Tickets Atendidos
            </p:submenu>
            <p:submenu label="Listado Tickets Atendidos">
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Contacts" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="contacts" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
            </p:submenu>
        </p:submenu>

        <p:submenu label="Grupos Tecnicos">
            <p:submenu label="Grupo de tecnicos a cargo">
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Contacts" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="contacts" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
            </p:submenu>
            
            <p:submenu label="Tickets del Grupo Tecnico">
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Contacts" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="contacts" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
            </p:submenu>
            
            <p:submenu label="Carga de trabajo de Tecnico">
                <c:if test="#{UserRolID == 1 || UserRolID == 2 || UserRolID == 3}">
                 <p:menuitem value="Contacts" action="#{menuBacking.active}" update="content">
                <f:setPropertyActionListener value="contacts" target="#{menuBacking.selection}"/>
                 </p:menuitem>
                </c:if>
            </p:submenu>
        </p:submenu>

        <p:submenu label="Canalización">
            
        </p:submenu>

        <p:menuitem value="Salir" actionListener="#{mBLogin.logout}" onclick="if(confirm('¿Está seguro?')) return true" />
    </p:menubar>

        </html>